class Comic {
	//	Attributes
	//TODO: possar auqest codi de forma generica per tot
	Integer rating = 0
	String name
	String description
	boolean off = false
    String path
	
	Date dateCreated
	Date lastUpdated

	
	//	DB Relations & Constraits
 	static belongsTo = 	[createdBy:User]
 	
	static hasMany = 	[page:Page,
	                 	 comments:Comment,
	                 	 ratings:Rate]

	static constraints = {
		name(blank:false,unique:true)
        rating(nullable:true)   //TODO:revisar
	}

	
	//	Other Methods
	String toString(){
		"Mode: "+off+" Nom: "+name+" Descripcio: "+description+" puntuacio: "+rating
	}
}